
<template>
  <a-config-provider :locale="locale" component-size="small" :csp="{ nonce: 'YourNonceCode' }">
    <a-layout>
      <a-layout-content class="y-content">
        <RouterView />
      </a-layout-content>

      <a-layout-footer style="text-align: center" class="y-footer">
        版权所有 ©2019 星驰致远
      </a-layout-footer>
    </a-layout>
  </a-config-provider>
</template>

<script setup>
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-cn')
onBeforeUnmount(() => {
  apiWs.ws.close()
})

const locale = zhCN
</script>

<style scoped>
.y-content {
  padding: 20px;
  height: 980px;
}
.y-footer {
  padding: 10px;
}
</style>
